<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<!-- Set render engine for 360 browser -->
	<meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->

	<link href="/public/simpleboot/themes/<?php echo C('SP_ADMIN_STYLE');?>/theme.min.css" rel="stylesheet">
    <link href="/public/simpleboot/css/simplebootadmin.css" rel="stylesheet">
    <link href="/public/js/artDialog/skins/default.css" rel="stylesheet" />
    <link href="/public/simpleboot/font-awesome/4.4.0/css/font-awesome.min.css"  rel="stylesheet" type="text/css">
    <style>
		.length_3{width: 180px;}
		form .input-order{margin-bottom: 0px;padding:3px;width:40px;}
		.table-actions{margin-top: 5px; margin-bottom: 5px;padding:0px;}
		.table-list{margin-bottom: 0px;}
	</style>
	<!--[if IE 7]>
	<link rel="stylesheet" href="/public/simpleboot/font-awesome/4.4.0/css/font-awesome-ie7.min.css">
	<![endif]-->
<script type="text/javascript">
//全局变量
var GV = {
    DIMAUB: "/",
    JS_ROOT: "public/js/",
    TOKEN: ""
};
</script>
<!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="/public/js/jquery.js"></script>
    <script src="/public/js/wind.js"></script>
    <script src="/public/simpleboot/bootstrap/js/bootstrap.min.js"></script>
	<script src="/public/js/layer/layer.js"></script>
<?php if(APP_DEBUG): ?><style>
		#think_page_trace_open{
			z-index:9999;
		}
	</style><?php endif; ?>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>级别管理</a></li>
    </ul>

    <form method="post" class="js-ajax-form">
        <!--<div class="table-actions">-->
            <!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="<?php echo U('Bdrunpeople/sign',array('sign'=>1));?>" data-subcheck="true">签约</button>-->
            <!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="<?php echo U('Bdrunpeople/cancelsign',array('unsign'=>1));?>" data-subcheck="true">取消签约</button>-->
            <!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="<?php echo U('Bdrunpeople/incubator',array('incubator'=>1));?>" data-subcheck="true">领取保温箱</button>-->
            <!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="<?php echo U('Bdrunpeople/freezee',array('freezee'=>1));?>" data-subcheck="true" data-msg="您确定冻结账户吗？">冻结</button>-->
            <!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="<?php echo U('Bdrunpeople/cancelfreezee',array('cancelfreezee'=>1));?>" data-subcheck="true" data-msg="您确定启用账户吗？">启用</button>-->
            <!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="<?php echo U('Bdrunpeople/cancelaudit',array('audit'=>1));?>" data-subcheck="true">取消审核</button>-->
        <!--</div>-->
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
                <th align="center">序号</th>
                <th>级别名称</th>
                <th>最低成长值数</th>
                <th>提取服务费比例</th>
                <th>级别图标</th>
                <th align="center">
                  操作
                </th>
            </tr>
            </thead>
            <tbody>

            <?php if(is_array($dispatchData)): foreach($dispatchData as $k=>$vo): ?><tr>
                    <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="<?php echo ($vo["dispatch_id"]); ?>" title="ID:<?php echo ($vo["dispatch_id"]); ?>"></td>
                    <td align="center"><?php echo ($k+1); ?></td>
                    <td><?php echo ($vo['level_name']); ?></td>
                    <td><?php echo ($vo['lowest_growth_value']); ?></td>
                    <td><?php echo ($vo["serv_charge_rate"]); ?>%</td>
                    <td><img style="width: 30px" src="/public/level/dispatch/p<?php echo ($vo["level_img"]); ?>.png"></td>
                    
                    <td align="center">
                        <a href="<?php echo U('Bdrunpeople/add_user_level');?>">新增</a>|<a href="<?php echo U('Bdrunpeople/user_level_edit');?>&dispatch_level_id=<?php echo ($vo["dispatch_level_id"]); ?>">编辑</a>| <a href="<?php echo U('Bdrunpeople/user_level_del');?>&dispatch_level_id=<?php echo ($vo["dispatch_level_id"]); ?>" class="js-ajax-delete">删除</a>
                    </td>
                </tr><?php endforeach; endif; ?>
            </tbody>
        </table>
        <?php if(empty($dispatchData)): ?><div style="padding: 30px;text-align: center;color: #999999">
                <i class="fa fa-database" style="font-size: 38px"></i><br />
                暂无数据
            </div><?php endif; ?>
        <div class="pagination"><?php echo ($page); ?></div>
    </form>
</div>
<script src="/public/js/common.js"></script>
<script>

</script>
</body>
</html>